import 'package:flutter/material.dart';
// import 'route/search.dart';
class homePage extends StatelessWidget{
  Widget build(BuildContext context){
    return Center(
      child: RaisedButton(
        child: Text("跳转到内页"),
        onPressed: (){
          print("object");
          Navigator.pushNamed(context, '/search',arguments: {"id":123});
          // Navigator.of(context).push(
          //   MaterialPageRoute(
          //     builder: (context){
          //       return searchPage(text: "携带参数",);
          //     }
          //   )
          // );
        },
      ),
    );
  }
}